00001
00002
00003 case L2CA_Indication_Union_ConfigInd_tag: {
00004
00005 if(IsMaster_Value())
00006 vccPrintPdxDebugInfo("%_START_ MASTER : GBI <-received [ConfigInd] from LL - return ConfigResponse %_END_");
00007 else
00008 vccPrintPdxDebugInfo("%_START_ SLAVE : GBI <-received [ConfigInd] from LL - return ConfigResponse %_END_");
00009
00010 CID = L2CA_packet_in->Service.__union.Indication.__union.ConfigInd.CID;
00011 OutMTU = L2CA_packet_in->Service.__union.Indication.__union.ConfigInd.OutMTU;
00012 TokenRate = L2CA_packet_in->Service.__union.Indication.__union.ConfigInd.InFlow.TokenRate;
00013 TokenBucketSize = L2CA_packet_in->Service.__union.Indication.__union.ConfigInd.InFlow.TokenBucketSize;
00014 PeakBandwidth = L2CA_packet_in->Service.__union.Indication.__union.ConfigInd.InFlow.PeakBandwidth;
00015 Latency = L2CA_packet_in->Service.__union.Indication.__union.ConfigInd.InFlow.Latency;
00016 DelayVariation = L2CA_packet_in->Service.__union.Indication.__union.ConfigInd.InFlow.DelayVariation;
00017
00018
00019 L2CA_packet_out.Service.__unionTag = L2CA_Service_Union_ConfigurationResponse_tag;
00020 L2CA_packet_out.Service.__union.ConfigurationResponse.__unionTag = L2CA_ConfigurationResponse_Union_Response_tag;
00021
00022 L2CA_packet_out.SourceID = 0x02;
00023 L2CA_packet_out.Service.__union.ConfigurationResponse.__union.Response.CID = CID;
00024 L2CA_packet_out.Service.__union.ConfigurationResponse.__union.Response.OutMTU = OutMTU;
00025 L2CA_packet_out.Service.__union.ConfigurationResponse.__union.Response.InFlow.TokenRate = TokenRate;
00026 L2CA_packet_out.Service.__union.ConfigurationResponse.__union.Response.InFlow.TokenBucketSize = TokenBucketSize;
00027 L2CA_packet_out.Service.__union.ConfigurationResponse.__union.Response.InFlow.PeakBandwidth = PeakBandwidth;
00028 L2CA_packet_out.Service.__union.ConfigurationResponse.__union.Response.InFlow.Latency = Latency;
00029 L2CA_packet_out.Service.__union.ConfigurationResponse.__union.Response.InFlow.DelayVariation = DelayVariation;
00030
00031 L2CA_Packet_Out_Post(&L2CA_packet_out);
00032
00033
00034 if(IsMaster_Value())
00035 vccPrintPdxDebugInfo("%_START_ MASTER : GBI ->sent [ConfigResponse] to LL %_END_");
00036 else
00037 vccPrintPdxDebugInfo("%_START_ SLAVE : GBI ->sent [ConfigResponse] to LL %_END_");
00038
00039
00040 L2CA_packet_out.Service.__unionTag = L2CA_Service_Union_Read_tag;
00041 L2CA_packet_out.Service.__union.Read.__unionTag = L2CA_Read_Union_Request_tag;
00042
00043 L2CA_packet_out.SourceID = 0x02;
00044 L2CA_packet_out.Service.__union.Read.__union.Request.CID = CID;
00045 L2CA_packet_out.Service.__union.Read.__union.Request.Length = 1504;
00046
00047 L2CA_Packet_Out_Post(&L2CA_packet_out);
00048
00049
00050 if(IsMaster_Value())
00051 vccPrintPdxDebugInfo("%_START_ MASTER : GBI -ConfigInd ->sent [Read_Request] to LL %_END_");
00052 else
00053 vccPrintPdxDebugInfo("%_START_ SLAVE : GBI -ConfigInd ->sent [Read_Request] to LL %_END_");
00054
00055 configured = 1;
00056
00057
00058 if(IsMaster_Value())
00059 vccPrintPdxDebugInfo("%_START_ MASTER : GBI -ConfigInd --- #configured = 1# %_END_");
00060 else
00061 vccPrintPdxDebugInfo("%_START_ SLAVE : GBI -ConfigInd --- #configured = 1# %_END_");
00062
00063 connection_established = 1;
00064
00065
00066 if(IsMaster_Value())
00067 vccPrintPdxDebugInfo("%_START_ Master : GBI -ConfigIndication --- #connection_established = 1# %_END_");
00068 else
00069 vccPrintPdxDebugInfo("%_START_ Slave : GBI -ConfigIndication --- #connection_established = 1# %_END_");
00070
00071 break;
00072 }